[Repo Assist] test: add 30 unit tests for CsvFile runtime transformation methods#1771
Open
github-actions[bot] wants to merge 5 commits intomainfrom
Open
Conversation
Add 30 tests in CsvRuntimeOperations.fs covering the previously untested transformation API on CsvFile<'T>: - Filter: predicate-based row filtering - Take / TakeWhile: row limiting - Skip / SkipWhile: row skipping - Truncate: at-most-N rows - Append: combining row sequences - Cache: lazy-to-eager caching - SaveToString / Save(TextWriter): serialisation round-trips, RFC 4180 CRLF handling, quoting, custom separator - Operation chaining: Filter+Take, Skip+Truncate All 3010 tests pass. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…3 to resolve GHSA-g94r-2vxg-569j Pre-existing infrastructure failure: OpenTelemetry.Api 1.15.0 has a known vulnerability that causes the build to fail with NU1902. Pin to >= 1.15.1 (resolved in 1.15.3) to fix CI. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
Author
|
Commit pushed:
|
13 tasks
…04-30-96fb9e025723b085
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 This PR was created by Repo Assist, an automated AI assistant.
Summary
Adds 30 unit tests covering
CsvFile<'T>runtime transformation methods that previously had zero coverage inFSharp.Data.Core.Tests:Filter(predicate)Take(n)TakeWhile(predicate)Skip(n)SkipWhile(predicate)Truncate(n)Append(rows)Cache()SaveToString()Save(TextWriter)SaveToStringoutputFilter+Take,Skip+TruncateWhy
These transformation methods form a core API for programmatic CSV manipulation. They were testable in isolation but only exercised through type-provider integration tests.
Test Status